home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Developer
/
Eval
/
Source
/
EvalWrap.psw
< prev
next >
Wrap
Text File
|
1992-05-12
|
570b
|
23 lines
/**
** code for setting up an independent context,
** borrowed from YAP
**/
defineps GetFocus(|float *llx; float *lly, *urx, *ury, ctm[6]; int *win)
gsave clippath pathbbox ury urx lly llx grestore
matrix currentmatrix {ctm} forall
currentwindow win
endps
defineps ReFocus(int win; float ctm[6]; float llx, lly, urx, ury)
win windowdeviceround % focus on this window
ctm setmatrix % set up the matrix
newpath % reestablish the clip path
llx lly moveto
llx ury lineto
urx ury lineto
urx lly lineto
closepath clip
newpath
endps